<template>
  <div>今年的年龄：{{ count }}</div>
  <div>十年后的年龄：{{ newCount }}</div>
</template>

<script>
import { computed, ref } from "vue";
export default {
  name: "App",
  setup() {
    const count = ref(10);
    const newCount = computed(() => count.value + 10);
    console.log(99, count);
    console.log(100, newCount);
    return { count, newCount };
  },
};
</script>

<style>
</style>